extends Area2D

@onready var animation_player = $AnimationPlayer

# Called when the node enters the scene tree for the first time.
func _ready():
	animation_player.play("idle")

func _on_body_entered(_player):
	animation_player.play("picked")
	Global.coins_pending += 1
	#var timer = get_tree().create_timer(2)
	#await timer.timeout
	#$AudioStreamPlayer2D.play(0)
	#await $AudioStreamPlayer2D.finished
	#queue_free()
